package com.xinan.weixin.in;

import com.jfinal.weixin.sdk.msg.in.InMsg;

/**
 * Created with IntelliJ IDEA.
 * User: xiaojing
 * Date: 14-10-31
 * Time: 上午9:59
 * To change this template use File | Settings | File Templates.
 */

/**
 * 接收链接消息
 * <xml>
 * <ToUserName><![CDATA[toUser]]></ToUserName>
 * <FromUserName><![CDATA[fromUser]]></FromUserName>
 * <CreateTime>1351776360</CreateTime>
 * <MsgType><![CDATA[link]]></MsgType>
 * <Title><![CDATA[公众平台官网链接]]></Title>
 * <Description><![CDATA[公众平台官网链接]]></Description>
 * <Url><![CDATA[url]]></Url>
 * <MsgId>1234567890123456</MsgId>
 * </xml>
 */
public class InMassMsg extends InMsg {
    private String event;    //事件信息，此处为MASSSENDJOBFINISH
    private String msgId;    //群发的消息ID
    private String status;    //群发的结构，为“send success”或“send fail”或“err(num)”。
    private String totalcount;  //group_id下粉丝数；或者openid_list中的粉丝数
    private String filtercount; //过滤后，准备发送的粉丝数，原则上，FilterCount = SentCount + ErrorCount
    private String sentcount;  //发送成功的粉丝数
    private String errorcount;  //发送失败的粉丝数


    public InMassMsg(String toUserName, String fromUserName, Integer createTime, String msgType) {
        super(toUserName, fromUserName, createTime, msgType);
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTotalcount() {
        return totalcount;
    }

    public void setTotalcount(String totalcount) {
        this.totalcount = totalcount;
    }

    public String getFiltercount() {
        return filtercount;
    }

    public void setFiltercount(String filtercount) {
        this.filtercount = filtercount;
    }

    public String getSentcount() {
        return sentcount;
    }

    public void setSentcount(String sentcount) {
        this.sentcount = sentcount;
    }

    public String getErrorcount() {
        return errorcount;
    }

    public void setErrorcount(String errorcount) {
        this.errorcount = errorcount;
    }
}
